 <div class="row">
                <div class="col-lg-12">
                    <h3 class="page-header text-success">Chỉnh sửa tài khoản <a  href="<?php echo base_url()?>backend/user/list_user/" class="btn btn-danger pull-right">Quay lại</a></h3>
                    
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                      <div class="panel-heading">                      
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                       
                        <form class="form-horizontal" method="post"  name="frmadd" id="frmadd" action="<?php echo base_url()?>backend/user/edit_user/<?php echo $user->taikhoan_id ?>"  data-toggle="validator" role="form">
                         <?php
						  echo "<div class='mess_error'>";
						  echo "<ul style='list-style:none'>";
							  if(validation_errors() != ''){
								  echo "<li>".validation_errors('<h5 class=" error text-center login-title" style="color:#F00">','</h5>')."</li>";
							  }
						  echo "</ul>";
						  echo "<ul style='list-style:none'>";
							  if(isset($error)){
								  echo $error;
							  }
						  echo "</ul>";
						  echo "</div>";
					    ?>
                            <fieldset>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_email" >Email</label>
                                <div class="col-sm-6">
                                  <input disabled type="text" class="form-control" name="taikhoan_email" id="taikhoan_email" value="<?php echo $user->taikhoan_email ?>" required autofocus>
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_hoten" >Họ tên</label>
                                <div class="col-sm-6">
                                  <input  type="text" class="form-control" name="taikhoan_hoten" id="taikhoan_hoten" value="<?php echo $user->taikhoan_hoten ?>" required >
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_type">Nhóm thành viên</label>
                                <div class="col-sm-6">
                                  <div class="row">
                                    <div class="col-xs-6">
                                      <select  class="form-control col-sm-6" name="taikhoan_type" id="taikhoan_type">
                                      <?php  
										$nhomtk=$this->db->query('SELECT * FROM tbnhomtaikhoan')->result_array();
										foreach($nhomtk as $item_nhomtk)
										{
										?>
										   <option <?php if($item_nhomtk['taikhoan_type']==$user->taikhoan_type) echo "selected"; ?> value="<?php echo $item_nhomtk['taikhoan_type'];  ?>"><?php echo $item_nhomtk['nhomtaikhoan_ten'];  ?></option>
										<?php 
										}
									 ?>
                                        
                                     
                                      </select>
                                    
                                    </div>
                                    
                                  </div>
                                </div>
                              </div>
                              <div class="form-group">
                                <label  class="col-sm-3 control-label" for="taikhoan_avatar"><img class="col-md-6 pull-right" src="<?php  if($user->taikhoan_avatar!='') {echo $user->taikhoan_avatar;} else echo base_url()."uploads/image/avatar/default-avatar.jpg" ?>" alt="" /></label>
                                <div class="col-sm-9"  style="padding-top:2em" >
                                  <div class="row">
                                    <div class="col-xs-6">
                                  		 
                                          <input  type="text" id="taikhoan_avatar" name="taikhoan_avatar" class="form-control" value="<?php echo $user->taikhoan_avatar ?>">
                                    
                                    </div>
                                    <div class="col-xs-6">
                                  		 <button onclick="browseKCFinder('taikhoan_avatar', 'image');return false;" class="btn btn-default">Chọn</button>
                                    
                                    </div>
                                    
                                  </div>
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_ngaysinh" >Ngày sinh</label>
                                <div class="col-sm-6">
                                  <input  type="text" class="form-control" name="taikhoan_ngaysinh" id="taikhoan_ngaysinh" value="<?php echo $user->taikhoan_ngaysinh ?>"  >
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_gioitinh">Giới tính</label>
                                <div class="col-sm-6">
                                  <div class="row">
                                    <div class="col-xs-6">
                                      <select class="form-control col-sm-6" name="taikhoan_gioitinh" id="taikhoan_gioitinh">
                                        <option value="0"<?php if($user->taikhoan_gioitinh==0) echo 'selected' ?>>Nữ</option>
                                        <option value="1" <?php if($user->taikhoan_gioitinh==1) echo 'selected' ?>>Nam</option>
                                        <option value="2" <?php if($user->taikhoan_gioitinh==2) echo 'selected' ?>>No info</option>
                                      
                                     
                                      </select>
                                    
                                    </div>
                                    
                                  </div>
                                </div>
                              </div>
                              
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_dienthoai" >Điện thoại</label>
                                <div class="col-sm-6">
                                  <input  type="text" class="form-control" name="taikhoan_dienthoai" id="taikhoan_dienthoai" value="<?php echo $user->taikhoan_dienthoai ?>"  >
                                </div>
                              </div>
                               <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_address" >Địa chỉ</label>
                                <div class="col-sm-6">
                                  <input  type="text" class="form-control" name="taikhoan_address" id="taikhoan_address" value="<?php echo $user->taikhoan_address ?>"  >
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_yahoo" >Yahoo</label>
                                <div class="col-sm-6">
                                  <input  type="text" class="form-control" name="taikhoan_yahoo" id="taikhoan_yahoo" value="<?php echo $user->taikhoan_yahoo ?>"  >
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_skype" >Skype</label>
                                <div class="col-sm-6">
                                  <input  type="text" class="form-control" name="taikhoan_skype" id="taikhoan_skype" value="<?php echo $user->taikhoan_skype ?>"  >
                                </div>
                              </div>
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_sothich" >Sở thích</label>
                                <div class="col-sm-6">
                                  <input  type="text" class="form-control" name="taikhoan_sothich" id="taikhoan_sothich" value="<?php echo $user->taikhoan_sothich ?>"  >
                                </div>
                              </div>
                              
                              <div class="form-group">
                                <label class="col-sm-3 control-label" for="taikhoan_trangthai">Trạng thái</label>
                                <div class="col-sm-6">
                                  <div class="row">
                                    <div class="col-xs-6">
                                      <select class="form-control col-sm-6" name="taikhoan_trangthai" id="taikhoan_trangthai">
                                        <option value="0" <?php if($user->taikhoan_trangthai==0) echo 'selected' ?>>Chưa kích hoạt</option>
                                        <option value="1" <?php if($user->taikhoan_trangthai==1) echo 'selected' ?>>Khoá</option>
                                        <option value="2" <?php if($user->taikhoan_trangthai==2) echo 'selected' ?>>Hoạt động</option>
                                     
                                      </select>
                                    
                                    </div>
                                    
                                  </div>
                                </div>
                              </div>
                             
                              <div class="form-group">
                                <div class="col-sm-offset-3 col-sm-1">
                                  <button type="reset" name="btncancel" id="btncancel" class="btn btn-danger">Làm lại</button>
                                </div>
                                <div class=" col-sm-1">
                                  <button type="submit" name="btnupdate" id="btnupdate" class="btn btn-success">Thực hiện</button>
                                </div>
                              </div>
                            </fieldset>
                          </form>
                            
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->






 							 